package com.doctor.activity;

import com.doctor.global.ImageUtil;

import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.ImageView;  

public class DetailActivity extends BaseActivity {

	private ImageView image;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		inIt();

	}

	@Override
	void inIt() {
		image = (ImageView) findViewById(R.id.image);
		Bitmap bitmap = ImageUtil.drawableToBitmap(getResources().getDrawable(R.drawable.image));
		// // Bitmap bm = 
		// ImageUtil.mToRoundCorner(getResources().getDrawable(R.drawable.image),
		// 10);
		Drawable drawable = new BitmapDrawable(ImageUtil.toRoundCorner(bitmap, 1));
		image.setImageDrawable(drawable);
	};

}
